﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <script src="../../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://qzs.qq.com/qzone/openapi/qc.js"></script>
    <link href="http://qzonestyle.gtimg.cn/ac/qzfl/release/css/msgbox.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div>
    <script type="text/javascript">
        var isSucc = false;
        //获取openid
        QC.Login.getMe(function (openId, accesToken, backData) {
            isSucc = true;
            $("#q_Msgbox_Succ").show();
            $.get("/Default/QQLoginAuth.html?openId=" + openId + "&accesToken=" + accesToken, function (response) {
                window.opener.location.href = window.opener.location.href;
                window.close();
            });
        });

        var t = setTimeout("if(!isSucc){$('#q_Msgbox_Fail').show();}", 2000)
    </script>
    </div>
    <div  class="qz_msgbox_layer_wrap" id="q_Msgbox_Succ" style="top: 178px;display:none;"><span class="qz_msgbox_layer" style="z-index: 10000; " id="mode_tips_succ"><span class="gtl_ico_succ"></span>授权成功。<span class="gtl_end"></span></span></div>
    <div  class="qz_msgbox_layer_wrap" id="q_Msgbox_Fail" style="top: 178px;display:none;"><span class="qz_msgbox_layer" style="z-index: 10000; " id="mode_tips_fail"><span class="gtl_ico_fail"></span>授权错误。<span class="gtl_end"></span></span></div>
</body>
</html>
